package com.dhc.appbusinessfrm.ioc;

import android.app.Application;

import com.dhc.appbusinessfrm.App;
import com.dhc.appbusinessfrm.ioc.business.BusinessRegisterModule;
import com.dhc.appbusinessfrm.ioc.network.NetRegisterModule;
import com.dhc.appbusinessfrm.ioc.presenter.PresenterRegisterModule;

import dagger.Module;
import dagger.Provides;

/**
 * Created by xy on 2015/6/11.
 */
@Module(
        injects = {
                App.class
        }, library = true, complete = false,
        includes = {PresenterRegisterModule.class,
                BusinessRegisterModule.class,
                NetRegisterModule.class
        }
)
public class AppModule {

    private App app;

    public AppModule(App app) {
        this.app = app;
    }

    @Provides
    public Application provideApplication() {
        return app;
    }
}